package cn.powernode.service;

import cn.powernode.dao.StudentDao;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;


@Service("studentService")
public class StudentService {

    @Resource(name="studentDaoImplForMySql") //根据名字进行装配
    private StudentDao studentDao;

    public void deleteStudent(){
        studentDao.deleteById();
    }
}
